﻿using com.yoozoo.gta.Extension.UGUI.ScreenOrientation.Adapter;
using UnityEditor;
using UnityEngine;

namespace com.yoozoo.gta.Extension.UGUI.Editor
{
    
    [CustomEditor(typeof(LayoutElementAdapter), true)]
    public class LayoutElementAdaptEditor:UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            if (EditorApplication.isPlaying)
            {
                GUI.enabled = false;
            }
            base.OnInspectorGUI(); 
            serializedObject.Update();
            if (EditorApplication.isPlaying)
            {
                GUI.enabled = true;
            }
            
        }
    }
}